﻿using Edu.Entitys;
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;
namespace Edu.Abstracts
{
    public interface IAppUserRepository : IRepository<AppUser, Guid>
    {
        Task<AppUser> FindByPhoneNumberAsync(string phoneNumber, CancellationToken cancellationToken = default);

        Task<AppUser> FindByUserNameAsync(string userName, CancellationToken cancellationToken = default);

        Task<List<AppUser>> GetListByArea(string Area, string sorting = null,
                  int maxResultCount = int.MaxValue,
                  int skipCount = 0, CancellationToken cancellationToken = default);
    }
}
